/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package src.com.apresentacao.matricula;

import src.com.negocio.matricula.Matricula;
import src.com.negocio.pedagogico.Turma;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import src.com.apresentacao.financeiro.PagarMatricula;

import src.com.negocio.pedagogico.CadastrarIdioma;
import src.com.negocio.pedagogico.CadastrarNivelIdioma;
import src.com.negocio.pedagogico.ConsultarNivelCurso;
import src.com.negocio.pedagogico.ConsultarTurma;

/**
 *
 * @author Camila Santos
 */
public class WMatricula extends javax.swing.JFrame {

    /**
     * Creates new form WMatricula
     */
    public WMatricula() throws SQLException {
        initComponents();
        CadastrarIdioma c = new CadastrarIdioma();
        for (int i = 0; i < c.consultaIdioma().size(); i++) {
            i_idioma.addItem(c.consultaIdioma().get(i));
        }
        CadastrarNivelIdioma d = new CadastrarNivelIdioma();
        for (int i = 0; i < d.consultaNivel().size(); i++) {
            n_nivel.addItem(d.consultaNivel().get(i));
            //System.out.print(c.consultaIdioma().get(i));            
        }

    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jInternalFrame1 = new javax.swing.JInternalFrame();
        jLabel1 = new javax.swing.JLabel();
        nomeAluno = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        i_idioma = new javax.swing.JComboBox();
        jLabel3 = new javax.swing.JLabel();
        n_nivel = new javax.swing.JComboBox();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        dindin = new javax.swing.JRadioButton();
        cartao = new javax.swing.JRadioButton();
        jLabel6 = new javax.swing.JLabel();
        numParcelas = new javax.swing.JComboBox();
        jButton1 = new javax.swing.JButton();
        jLabel7 = new javax.swing.JLabel();
        nmAlu = new javax.swing.JLabel();
        t_turma = new javax.swing.JTextField();
        numMtr = new javax.swing.JTextField();
        jRadioButton1 = new javax.swing.JRadioButton();
        jLabel8 = new javax.swing.JLabel();
        dtVenc = new javax.swing.JComboBox();
        jRadioButton2 = new javax.swing.JRadioButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        jInternalFrame1.setTitle("Matrícula - Curso de Idioma");
        jInternalFrame1.setVisible(true);

        jLabel1.setText("Nome do aluno:");

        nomeAluno.setEnabled(false);
        nomeAluno.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                nomeAlunoActionPerformed(evt);
            }
        });

        jLabel2.setText("Idioma:");

        jLabel3.setText("Nivel:");

        jLabel4.setText("Turma:");

        jLabel5.setText("Forma de Pagamento:");

        dindin.setText("Dinheiro");
        dindin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dindinActionPerformed(evt);
            }
        });

        cartao.setText("Cartão de crédito");

        jLabel6.setText("Quantidade de parcelas a pagar:");
        jLabel6.setEnabled(false);

        numParcelas.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6" }));
        numParcelas.setEnabled(false);

        jButton1.setText("Efetuar Matrícula");
        jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton1MouseClicked(evt);
            }
        });

        jLabel7.setText("Número de matrícula:");

        numMtr.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                numMtrFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                numMtrFocusLost(evt);
            }
        });

        jRadioButton1.setSelected(true);
        jRadioButton1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jRadioButton1MouseClicked(evt);
            }
        });
        jRadioButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButton1ActionPerformed(evt);
            }
        });

        jLabel8.setText("Dia de vencimento: ");
        jLabel8.setEnabled(false);

        dtVenc.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "5", "10", "15", "20", "25", "30" }));
        dtVenc.setEnabled(false);

        jRadioButton2.setSelected(true);
        jRadioButton2.setText("À vista");
        jRadioButton2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jRadioButton2MouseClicked(evt);
            }
        });
        jRadioButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButton2ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jInternalFrame1Layout = new javax.swing.GroupLayout(jInternalFrame1.getContentPane());
        jInternalFrame1.getContentPane().setLayout(jInternalFrame1Layout);
        jInternalFrame1Layout.setHorizontalGroup(
            jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jInternalFrame1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jInternalFrame1Layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jButton1))
                    .addGroup(jInternalFrame1Layout.createSequentialGroup()
                        .addComponent(jRadioButton1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jInternalFrame1Layout.createSequentialGroup()
                                .addComponent(jLabel7)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(numMtr, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(nmAlu, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jInternalFrame1Layout.createSequentialGroup()
                                .addGroup(jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jInternalFrame1Layout.createSequentialGroup()
                                        .addGroup(jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel1)
                                            .addComponent(jLabel2)
                                            .addComponent(jLabel3)
                                            .addComponent(jLabel4))
                                        .addGap(37, 37, 37)
                                        .addGroup(jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(t_turma, javax.swing.GroupLayout.PREFERRED_SIZE, 268, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(nomeAluno, javax.swing.GroupLayout.PREFERRED_SIZE, 268, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(i_idioma, javax.swing.GroupLayout.PREFERRED_SIZE, 268, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(n_nivel, javax.swing.GroupLayout.PREFERRED_SIZE, 268, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jInternalFrame1Layout.createSequentialGroup()
                                        .addComponent(jLabel5)
                                        .addGap(25, 25, 25)
                                        .addComponent(dindin)
                                        .addGap(12, 12, 12)
                                        .addComponent(cartao))
                                    .addComponent(jRadioButton2, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jInternalFrame1Layout.createSequentialGroup()
                                        .addGroup(jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel6)
                                            .addComponent(jLabel8))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addGroup(jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addComponent(numParcelas, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(dtVenc, 0, 46, Short.MAX_VALUE))))
                                .addGap(0, 0, Short.MAX_VALUE)))))
                .addContainerGap())
        );
        jInternalFrame1Layout.setVerticalGroup(
            jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jInternalFrame1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jRadioButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel7)
                        .addComponent(numMtr, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(nmAlu, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addGap(26, 26, 26)
                .addGroup(jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(nomeAluno, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(i_idioma, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(n_nivel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(24, 24, 24)
                .addGroup(jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4)
                    .addComponent(t_turma, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(15, 15, 15)
                .addComponent(jRadioButton2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(dindin)
                    .addComponent(cartao))
                .addGap(8, 8, 8)
                .addGroup(jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel8)
                    .addComponent(dtVenc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel6)
                    .addComponent(numParcelas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jButton1)
                .addContainerGap(51, Short.MAX_VALUE))
        );

        nomeAluno.getAccessibleContext().setAccessibleName("tNomeAluno");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jInternalFrame1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jInternalFrame1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void nomeAlunoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nomeAlunoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_nomeAlunoActionPerformed

    private void dindinActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dindinActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_dindinActionPerformed

    private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton1MouseClicked
        String matricula = numMtr.getText().toString();
        String aluno = nomeAluno.getText().toString();
        String idioma = i_idioma.getSelectedItem().toString();
        String nivel = n_nivel.getSelectedItem().toString();
        String turma = t_turma.getText().toString();
        String vencimento = dtVenc.getSelectedItem().toString();
        String din = "0", cart = "0";
        String forma = dindin.getText();

        if (dindin.isSelected()) {
            din = "1";

        } else if (cartao.isSelected()) {
            cart = "1";
            forma = cartao.getText();
        }
        String parcelas = numParcelas.getSelectedItem().toString();

        ConsultarNivelCurso cons = new ConsultarNivelCurso();
        String vl;
        try {
            double valorfinal = 0;

            vl = cons.consultaValor(nivel);

            PagarMatricula pgMtr = new PagarMatricula();
            int pl = new Integer(parcelas);
            // System.out.println("Parcelas: " + pl);
            //System.out.println("Valor: " + vl);


            //double valorfinal = 0;
            ConsultarTurma idT = new ConsultarTurma();
            String id_turma = idT.consTurma(turma);
            Matricula ins = new Matricula();
            int v = new Integer(vl);
            valorfinal = v;
            if (jRadioButton2.isSelected() && dindin.isSelected()) {
                valorfinal = v * (0.85);
            }
            if (!jRadioButton2.isSelected() && dindin.isSelected()) {
                valorfinal = v * (0.90);
            }
            Turma id_niv = new Turma();
            String id_nivel = id_niv.retornaIdNiv(nivel);
            String id_idioma = id_niv.retornaIdi(idioma);
            if (jRadioButton1.isSelected()) {
                Matricula m = new Matricula();
                String nome = m.retornaNome(matricula);
                if (nome != null) {
                    String mm = m.VerificaMatricula(matricula);
                    System.out.println("MM: " + mm);
                    if (mm.equals("0")) {
                        
                        if (id_turma != null) {
                            ins.inserirmatricula(id_turma,matricula,parcelas,id_idioma,id_nivel);
                            ins.inserirparcelas(vencimento, id_turma, matricula, valorfinal + "", forma, parcelas);
                            pgMtr.preecherTabela(pl, valorfinal + "", nome, turma);
                            pgMtr.setVisible(true);
                        } else {
                            javax.swing.JDialog inf = new javax.swing.JDialog();
                            inf.setSize(250, 150);
                            javax.swing.JOptionPane.showMessageDialog(inf, "A turma informada não existe!", "Informação", javax.swing.JOptionPane.WARNING_MESSAGE);
                        }
                    } else {
                        javax.swing.JDialog inf = new javax.swing.JDialog();
                        inf.setSize(250, 150);
                        javax.swing.JOptionPane.showMessageDialog(inf, "O aluno já possui matricula confirmada!", "Informação", javax.swing.JOptionPane.WARNING_MESSAGE);
                    }

                } else {
                    javax.swing.JDialog inf = new javax.swing.JDialog();
                    inf.setSize(250, 150);
                    javax.swing.JOptionPane.showMessageDialog(inf, "A matricula informada não existe!", "Informação", javax.swing.JOptionPane.WARNING_MESSAGE);
                }

            } else {
                Matricula m = new Matricula();
                String id_aluno = ins.retornaMtr(aluno);
                if (id_aluno != null) {
                   String mm = m.VerificaMatricula(matricula);
                    if (mm.equals("0")) {
                        
                        if (id_turma != null) {
                            ins.inserirmatricula(id_turma,matricula,parcelas,id_idioma,id_nivel);
                            ins.inserirparcelas(vencimento, id_turma, id_aluno, valorfinal + "", forma, parcelas);
                            pgMtr.preecherTabela(pl, valorfinal + "", aluno, turma);
                            pgMtr.setVisible(true);
                        } else {
                            javax.swing.JDialog inf = new javax.swing.JDialog();
                            inf.setSize(250, 150);
                            javax.swing.JOptionPane.showMessageDialog(inf, "A turma informada não existe!", "Informação", javax.swing.JOptionPane.WARNING_MESSAGE);
                        }
                    }else {
                        javax.swing.JDialog inf = new javax.swing.JDialog();
                        inf.setSize(250, 150);
                        javax.swing.JOptionPane.showMessageDialog(inf, "O aluno já possui matricula confirmada!", "Informação", javax.swing.JOptionPane.WARNING_MESSAGE);
                    }
                } else {
                    javax.swing.JDialog inf = new javax.swing.JDialog();
                    inf.setSize(250, 150);
                    javax.swing.JOptionPane.showMessageDialog(inf, "O aluno informado não existe!", "Informação", javax.swing.JOptionPane.WARNING_MESSAGE);
                }
            }


        } catch (SQLException ex) {
            Logger.getLogger(WMatricula.class.getName()).log(Level.SEVERE, null, ex);
        }





    }//GEN-LAST:event_jButton1MouseClicked

    private void jRadioButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jRadioButton1ActionPerformed

    private void jRadioButton1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jRadioButton1MouseClicked
        if (!jRadioButton1.isSelected()) {
            nomeAluno.setEnabled(true);
            numMtr.setEnabled(false);
        } else {
            nomeAluno.setEnabled(false);
            numMtr.setEnabled(true);
        }
    }//GEN-LAST:event_jRadioButton1MouseClicked

    private void numMtrFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_numMtrFocusGained
        //System.out.println("TESTE01");
    }//GEN-LAST:event_numMtrFocusGained

    private void numMtrFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_numMtrFocusLost
        Matricula nm = new Matricula();
        try {
            String nAlu = nm.retornaNome(numMtr.getText().toString());
            nmAlu.setText(nAlu);

        } catch (SQLException ex) {
            Logger.getLogger(WMatricula.class.getName()).log(Level.SEVERE, null, ex);
        }

    }//GEN-LAST:event_numMtrFocusLost

    private void jRadioButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton2ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jRadioButton2ActionPerformed

    private void jRadioButton2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jRadioButton2MouseClicked
        if (!jRadioButton2.isSelected()) {
            jLabel5.setEnabled(true);
            dindin.setEnabled(true);
            cartao.setEnabled(true);
            jLabel8.setEnabled(true);
            jLabel6.setEnabled(true);
            dtVenc.setEnabled(true);
            numParcelas.setEnabled(true);

        } else {
            jLabel5.setEnabled(true);
            dindin.setEnabled(true);
            cartao.setEnabled(true);
            jLabel8.setEnabled(false);
            jLabel6.setEnabled(false);
            dtVenc.setEnabled(false);
            numParcelas.setEnabled(false);
        }
    }//GEN-LAST:event_jRadioButton2MouseClicked

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(WMatricula.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(WMatricula.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(WMatricula.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(WMatricula.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                try {
                    new WMatricula().setVisible(true);
                } catch (SQLException ex) {
                    Logger.getLogger(WMatricula.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JRadioButton cartao;
    private javax.swing.JRadioButton dindin;
    private javax.swing.JComboBox dtVenc;
    private javax.swing.JComboBox i_idioma;
    private javax.swing.JButton jButton1;
    private javax.swing.JInternalFrame jInternalFrame1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JRadioButton jRadioButton1;
    private javax.swing.JRadioButton jRadioButton2;
    private javax.swing.JComboBox n_nivel;
    private javax.swing.JLabel nmAlu;
    private javax.swing.JTextField nomeAluno;
    private javax.swing.JTextField numMtr;
    private javax.swing.JComboBox numParcelas;
    private javax.swing.JTextField t_turma;
    // End of variables declaration//GEN-END:variables
}
